<script src="/assets/home/layui/layui.js"></script>
<script>
    //预加载
    window.onload = function(){
      layui.cache.page = '';
      layui.cache.user = {
        username: '游客'
        ,uid: -1
        ,avatar: '/assets/home/images/avatar/00.jpg'
        ,experience: 83
        ,sex: '男'
      };
      layui.config({
        version: "3.0.0"
        ,base: '/assets/home/mods/' //这里实际使用时，建议改成绝对路径
      }).extend({
        fly: 'index'
      }).use('fly');
    }
</script>